package com.livelab.model;

import java.sql.Timestamp;

/**
 * Model class used by ExerciseSummaryBean.java. Holds a student's summary 
 * for an individual assigned exercise
 * 
 * @author Dakota
 */
public class ExerciseSummary {
    
    private String username;    //student's username
    private Timestamp due;      //due date timestamp
    private double score;       //student's score for exercise
    private double maxScore;    //max score of exercise
    
    /**
     * Constructor
     * 
     * @param username -- student's username
     * @param due -- due date of exercise
     * @param score -- students score for exercise
     * @param maxScore -- max score of exercise
     */
    public ExerciseSummary(String username, Timestamp due, double score, double maxScore){
        this.username = username;
        this.due = due;
        this.score = score;
        this.maxScore = maxScore;
    }
    
    /*
     * GETTERS
     */
    
    public String getUsername(){
        return username;
    }
    
    public String getDue(){
        return due.toString();
    }
    
    public double getScore(){
        return score;
    }
    
    public double getMaxScore(){
        return maxScore;
    }
}
